<?php 

class TestViewModel extends ViewModel{
	protected $connection = 'info';
	protected $tablePrefix = 'destoon_';
	public $viewFields = array(
		'mall'=>array('itemid', 'catid','_table'=>"destoon_mall",'_as'=>'mall'),
		'mall_data'=>array('content','_table'=>"destoon_mall_data",'_as'=>'mall_data','_on'=>'mall.itemid=mall_data.itemid'),
		'category'=>array('catname','_table'=>"destoon_category",'_as'=>'category','_on'=>'mall.catid=category.catid'),
	);

 ?>